Optimal. Leaf size=39 \[ \frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )}{c^{3/2} \sqrt {d}}+\frac {a x}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {374, 388, 205} \[ \frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )}{c^{3/2} \sqrt {d}}+\frac {a x}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 374
Rule 388
Rubi steps
\begin {align*} \int \frac {a+\frac {b}{x^2}}{c+\frac {d}{x^2}} \, dx &=\int \frac {b+a x^2}{d+c x^2} \, dx\\ &=\frac {a x}{c}-\frac {(-b c+a d) \int \frac {1}{d+c x^2} \, dx}{c}\\ &=\frac {a x}{c}+\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )}{c^{3/2} \sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 40, normalized size = 1.03 \[ \frac {a x}{c}-\frac {(a d-b c) \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {d}}\right )}{c^{3/2} \sqrt {d}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.88, size = 98, normalized size = 2.51 \[ \left [\frac {2 \, a c d x + {\left (b c - a d\right )} \sqrt {-c d} \log \left (\frac {c x^{2} + 2 \, \sqrt {-c d} x - d}{c x^{2} + d}\right )}{2 \, c^{2} d}, \frac {a c d x + {\left (b c - a d\right )} \sqrt {c d} \arctan \left (\frac {\sqrt {c d} x}{d}\right )}{c^{2} d}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 33, normalized size = 0.85 \[ \frac {a x}{c} + \frac {{\left (b c - a d\right )} \arctan \left (\frac {c x}{\sqrt {c d}}\right )}{\sqrt {c d} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 45, normalized size = 1.15 \[ -\frac {a d \arctan \left (\frac {c x}{\sqrt {c d}}\right )}{\sqrt {c d}\, c}+\frac {b \arctan \left (\frac {c x}{\sqrt {c d}}\right )}{\sqrt {c d}}+\frac {a x}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.30, size = 33, normalized size = 0.85 \[ \frac {a x}{c} + \frac {{\left (b c - a d\right )} \arctan \left (\frac {c x}{\sqrt {c d}}\right )}{\sqrt {c d} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 32, normalized size = 0.82 \[ \frac {a\,x}{c}-\frac {\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {d}}\right )\,\left (a\,d-b\,c\right )}{c^{3/2}\,\sqrt {d}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.33, size = 82, normalized size = 2.10 \[ \frac {a x}{c} + \frac {\sqrt {- \frac {1}{c^{3} d}} \left (a d - b c\right ) \log {\left (- c d \sqrt {- \frac {1}{c^{3} d}} + x \right )}}{2} - \frac {\sqrt {- \frac {1}{c^{3} d}} \left (a d - b c\right ) \log {\left (c d \sqrt {- \frac {1}{c^{3} d}} + x \right )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________